package com.mofang.powerdekorhelper.adapter;

import android.content.Context;

import com.mofang.powerdekorhelper.R;
import com.mofang.powerdekorhelper.base.recycleview.BaseRecycleViewAdapter;
import com.mofang.powerdekorhelper.base.recycleview.BaseViewHolder;
import com.mofang.powerdekorhelper.model.MinePoint;

import java.util.List;

/**
 * Created by luofei on 2017/11/7 0007.
 * 说明：
 */

public class MinePointListAdater extends BaseRecycleViewAdapter {

    public MinePointListAdater(List<?> data, Context mContext, int layoutId) {
        super(data, mContext, layoutId);
    }

    @Override
    protected <T> void convert(BaseViewHolder holder, T bean, int position) {
        MinePoint point = (MinePoint) bean;
        holder.setText(R.id.mpoint_type_list_item_title, point.getName());
        holder.itemView.setTag(point);
    }
}
